﻿<html>
	<head>
		<title></title>
        <script src="jvsUnit.js"></script>
        <script src="commands.js"></script>
	    <script src="vm.js"></script>
        <script src="tests.js"></script>
    </head>
	<body>
	
        <script>


            PrintResults = function (testFixtureResult) {
                document.write("<p>" + testFixtureResult.fixtureName + "</p>");
                for (var i = 0; i < testFixtureResult.results.length; i++) {
                    var testResult = testFixtureResult.results[i];
                    if (testResult.success)
                        document.writeln("<div>" + testResult.testName + ": Success</div>");
                    else
                        document.writeln("<div>" + testResult.testName + ": Failure - " + testResult.errorMessage + "</div>");
                };
            };
            
            
            var at = new ArithmeticTests();
            var testFixtureResult = at.Execute();

            PrintResults(testFixtureResult);
        
        </script>



	</body>
</html>